#include<stdio.h>
int main()
{
	char a;
	printf("请输入需要加密的字符：");
	fine:
	scanf("%c",&a);
	if(a!='\n')
	{
		if(a>='a'&&a<='z')
		printf("%c~~%d\n",a,a-23);
		else  if(a>'A'&&a<'Z')
		printf("%c~~%d\n",a,a-17);
		else  if(a>='0'&&a<='9')
		printf("%c~~%d\n",a,a-10);
		else  if(a>=32&&a<=47)
		printf("%c~~%d\n",a,a-10);
		else  if(a>=91&&a<=96)
		printf("%c~~%d\n",a,a-75);
		else  if(a>=58&&a<=64)
		printf("%c~~%d\n",a,a-49);
	}
	goto fine;
	return 0;
}
		
